package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author czg
 * @since 2022-05-07
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "问题类型表")
public class ProblemHelpType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 类型标题
     */
    @Column(comment = "类型标题")
    private String title;

    /**
     * 类型标题
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "备注")
    private String remarks;

    /**
     * 问题类型
     */
    @Column(comment = "状态 1正常 2不显示 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer createId;

    /**
     * 排序
     */
    @Column(comment = "排序")
    private Integer sort;

    /**
     * 问题数量
     */
    @TableField(exist = false)
    private Integer num;
}
